<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    let name = prompt("请输入姓名")
    alert(name)

    let num1 = parseFloat(prompt("请输入第一个数字"))
    let num2 = parseFloat(prompt("请输入第二个数字"))
    alert(num1 + num2)
</script>
</body>
</html>